﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MapEditor</title>
<link href="css/map.css" rel="stylesheet"/>
<script type="text/javascript" src="js/jquery-1.7.js"></script>
<script type="text/javascript" src="js/ArrayList.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/json2.js"></script>
<script type="text/javascript" src="js/map.js"></script>
<script type="text/javascript" src="js/canvas.js"></script>
<script type="text/javascript" src="js/triangle.js"></script>
<script type="text/javascript">
	$(function() {
		var menuNode = $("<div id='menu' style='z-index:9999;'></div>");
		var wrapper = $("<div id='wrapper' style='height:" + COLUMN_NUM * 45 + "px;width:" + ROW_NUM * 45 + "px;'></div>");
		$("body").append(menuNode);
		$("body").append(wrapper);
		menu = new MenuController(menuNode, {
			tiles : TILES,
			principle : PRINCIPLE
		});
		map = new MapEntity({
			row : ROW_NUM,
			col : COLUMN_NUM,
			parent : wrapper,
			menu : menu,
			height : 45,
			width : 45
		});
	});
</script>
</head>
<body>
</body>
</html>